<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>全国旅游景点分析系统</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        html, body {
            height: 100%;
        }
        body {
            background-color: #121212;
            color: #e0e0e0;
            display: flex;
            justify-content: center;
            align-items: center;
            background-image: url('https://images.unsplash.com/photo-1506197603052-3cc9c3a201bd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            position: relative;
        }
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 0;
        }
        .login-wrapper {
            background-color: rgba(30, 30, 30, 0.85);
            width: 380px;
            padding: 40px 50px;
            border-radius: 10px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            z-index: 1;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transform: translateY(-20px);
            animation: fadeInUp 0.8s ease-out;
        }
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(-20px);
            }
        }
        .header {
            font-size: 28px;
            font-weight: 600;
            text-align: center;
            margin-bottom: 40px;
            color: #fff;
            letter-spacing: 1px;
            position: relative;
            padding-bottom: 15px;
        }
        .header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(to right, #6a11cb, #2575fc);
            border-radius: 3px;
        }
        .input-item {
            display: block;
            width: 100%;
            padding: 12px 15px;
            margin-bottom: 25px;
            border: none;
            background-color: rgba(255, 255, 255, 0.08);
            border-radius: 5px;
            font-size: 15px;
            color: #e0e0e0;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
        }
        .input-item:focus {
            outline: none;
            background-color: rgba(255, 255, 255, 0.12);
            border-left: 3px solid #2575fc;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        .input-item::placeholder {
            color: #aaa;
        }
        .btn {
            width: 100%;
            padding: 12px;
            margin-top: 20px;
            background: linear-gradient(to right, #6a11cb, #2575fc);
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
        }
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(37, 117, 252, 0.4);
        }
        .msg {
            text-align: center;
            margin-top: 30px;
            color: #aaa;
            font-size: 14px;
        }
        a {
            color: #6a11cb;
            text-decoration: none;
            transition: color 0.3s ease;
            font-weight: 600;
        }
        a:hover {
            color: #2575fc;
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <div class="login-wrapper">
        <div class="header">全国旅游景点分析系统</div>
        <form method="POST" class="form-wrapper">
            {{ form.hidden_tag() }}
            {{ form.hidden_tag() }}
            <div class="form-group">
                <label for="user_type">登录类型</label>
                {{ form.user_type(class="input-item") }}
            </div>
            {{ form.username(class="input-item", placeholder="用户名") }}
            {{ form.password(class="input-item", placeholder="密码") }}
            {{ form.submit(class="btn", value="登录") }}
            <div class="msg">
                还没有账号?
                <a href="{{ url_for('auth.register') }}">立即注册</a>
            </div>
        </form>
    </div>
</body>
</html>